          <?php echo $this->Html->script(array('ckeditor/ckeditor')); ?>
          <?php echo $this->Form->create("News");
                echo $this->Form->hidden('id');
           ?>
          
             <fieldset>
              <div class="input-content">
                  <div class="input ">
                    <label for="last-name">Tiêu đề(<span>*</span>)</label>
                    <?php echo $this-> Form->input('title',array('class'=>'placeholder','placeholder'=>' Tiêu đề tin ','label'=>false,'div'=>false));?>
                    <div class="error-message" id="errorTitle"></div>
				
		          </div>
                  <div class="input area none">
                  <label>Tóm tắt tin</label>
                  <?php  echo $this->Form->input('summary',
                            array(
                                'type'=>'Textarea',
                                'label'=>false, 
                                'div'=>false,
                               
                            )
                        );
                   ?>     
                </div>
                  
                 <div class="input area none">
                  <label>Chi tiết</label>
                  <?php  echo $this->Form->input('content',
                            array(
                                'type'=>'Textarea',
                                'label'=>false, 
                                'div'=>false,
                                'class'=>'ckeditor'
                            )
                        );
                   ?>     
                </div>
                 
                  <div class="submit">
                   <?php echo $this->Form->submit("",array('class'=>'save','id'=>'btnSave')); ?>
                   <!-- <input type="submit" id="btnSave" value="" class="save"> -->
                    <a href="javascript:resetForm()" id="resetForm" class="reset">Reset</a>
                  </div>
            </fieldset>
          <?php echo $this->Form->end(); ?>
    <script>
    $("#btnSave").click(function(){
            var  validateTile   = new validate("NewsTitle","errorTitle","Bạn chưa nhập tiêu đề");
            var result = validateTile.notEmpty();
            if(!(result))
            {
                $('html, body').animate({ scrollTop: 0 }, 'slow');
            }
            return result;
        });
     function resetForm()
     {
        window.location.reload();
     }
    </script>